<h1 class="title">后台记录</h1>
<form method="post">
<p>
    宿舍{{ form.dormitory }}
    楼层{{ form.floor }}
    学生编号{{ form.student_number }}
    设施{{ form.place }}
    进出{{ form.opt }}
    {{ form.submit }}
    <a href="{{ url_for('download',file='records.xlsx') }}">导出为Excel</a>
</p>
</form>
{% for record in records %}
    <div>寝室号{{ record['room_number'] }} 姓名{{ record['student_name'] }} 宿舍楼{{ record['dormitory'] }} 楼层{{ record['floor'] }} 设施：{{ record['place'] }} 时间{{ record['created'] }}</div>
    <br>
    <hr>
{% endfor %}